package com.zsd.android.annotation;

import com.zsd.android.annotation.mode.ThreadMode;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.CLASS)
public @interface Subscribe {

    //线程模式
    ThreadMode threadMode() default ThreadMode.POSTING;

    //黏性事件
    boolean sticky() default false;

    //事件订阅的优先级
    int priority() default 0;
}
